package com.thd.springboot.project.codegenerator.dto;

import java.util.List;

public class GeneratorDto {
    private String id;
    private List<String> ids;
    private List<String> tableNames;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<String> getIds() {
        return ids;
    }

    public void setIds(List<String> ids) {
        this.ids = ids;
    }

    public List<String> getTableNames() {
        return tableNames;
    }

    public void setTableNames(List<String> tableNames) {
        this.tableNames = tableNames;
    }

    public GeneratorDto(){

    }
    public static GeneratorDto createInstance(List<String> tableNames,String id){
        GeneratorDto dto = new GeneratorDto();
        dto.setTableNames(tableNames);
        dto.setId(id);
        return dto;
    }
    public static GeneratorDto createInstance(List<String> tableNames,List<String> ids){
        GeneratorDto dto = new GeneratorDto();
        dto.setTableNames(tableNames);
        dto.setIds(ids);
        return dto;
    }
}
